Ext.define('TS.view.bible.bibleverse.MultiForm', {
    extend: 'TS.lib.Form',
    alias : 'widget.bibleversemultiform',
    title : 'Wklej rozdział',
	url:URL.bible.form.bibleverses,
	items:[
		Factory.layout.column(
			{xtype:'combo',fieldLabel:'Biblia',name:'bible_id',store:Dict.bible},
			{xtype:'combo',fieldLabel:'Księga',name:'book_id',store:Dict.book,onSelect:function(){
				Util.s.load(Util.fld(this.up('form'),'chapter_id').getStore(),where('book_id',this.getValue()));
			}},
			{xtype:'combo',fieldLabel:'Rozdział',name:'chapter_id',store:Ext.clone(Dict.chapter)},
			{xtype:'text',fieldLabel:'delimiter',name:'delimiter'},
			{xtype:'text',fieldLabel:'Wers (pierwszy)',name:'verse_number_start'}
		),
		{xtype:'area',fieldLabel:'Treść',name:'bible_verse_text',height:400}
	],
	buttons:[{
		text:'Zapisz',
		handler:Util.f.save,
		callback:function(){
			Dict.bibleverse.load();
			Util.store('BibleVerse').load();
		}
	},{
		text:'Nowy',
		handler:Util.f.clear
	}]
});